package com.ctg.payroll2.service.empadmin;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.ctg.platform.core.security.Exception.SecurityException;
import com.ctg.platform.core.security.entity.Account;
import com.ctg.platform.util.Page;

import com.ctg.payroll2.bean.EmployeeInfo;
import com.ctg.payroll2.bean.po.CsEmpAccount;
import com.ctg.payroll2.bean.po.SysUser;

public interface EmpAdminIndexService {
	Page getAllEmpAdminByPaging(String company_code,String emp_cs_code, String name,
			Integer is_valid, Integer out_jobdate, Integer departId,
			String start_date, String end_date, int start, int limit);

	void deleteEmployee(List data) throws SQLException;

	/**
	 * 保存雇员信息
	 * 
	 * @param company_code
	 *            公司编号
	 * @param baseInfo
	 *            基本信息
	 * @param socialSecurityNumber
	 *            社会保障号信息
	 * @param bankCardNumber
	 *            银行卡号信息
	 */
	void saveEmployeeInfo(String company_code, String baseInfo,
			String socialSecurityNumber, String bankCardNumber)
			throws SQLException;

	/**
	 * 获取员工信息
	 * 
	 * @param employee_id
	 *            员工标示
	 * @return
	 */
	EmployeeInfo getEmployeeInfo(Integer employee_id) throws SQLException;

	/**
	 * 给用户权限表里插入数据
	 * 
	 * @param csEmpAccount
	 * @throws SQLException
	 */
	void insertCsEmpAccount(Account acc, SysUser sysUser, String[] roleIds,
			CsEmpAccount csEmpAccount,String name) throws SQLException,
			SecurityException ;
	
	/**
	 * 根据Id查询权限信息
	 * @param empId
	 * @return
	 * @throws SQLException
	 */
	CsEmpAccount queryEmproll(Integer empId) throws SQLException;
}
